package com.vae.dao;

import java.sql.SQLException;
import java.util.List;

import com.vae.domain.Person;

public interface PersonDao {

	//添加
	public void add(Person person) throws SQLException ;
		
	//更新
	public void update(Person person) throws SQLException ;
	
	//删除-按id删
    public void delete(int id) throws SQLException;

    // 查找方法-按id查
     public Person findById(int id) throws SQLException;
 
     // 查找所有
     public List<Person> findAll() throws SQLException;
 
     // 查询有几条记录
     public long personCount() throws SQLException; 
}
